import org.apache.log4j.Logger;

/**
 * @Author penglai
 * @Date 2017/1/20.
 */
public class Log4jDemo {

    protected static Logger logger = Logger.getLogger(Log4jDemo.class.getName());

    public static void main(String[] args) {
        logger.warn("使用log4j-over-slf4j替换log4j");
        logger.info("info message");
    }
}
